<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <meta name="author" content="纪德朝">
    <title>提示框效果</title>
    <style>
    .first{
        width: 600px;
        height: 400px;
        margin: 0 auto;
        text-align: center;
        border: 5px solid black;
    }
    section{
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .first div{
        width: 100px;
        height: 100px;
        border: 1px solid black;
        margin:0 5px 20px 5px;
        background-color: #666;
        position: relative;
        /* z-index: 100; */
    }
    .first div img{
        width: 128px;
        height: 128px;
        position: absolute;
        top: -14px;
        left: -14px;
        opacity: 0;
        /* border: 1px solid black; */
    }
    .first div img:hover{
        z-index: 100;
        opacity: 1;
        transition:  all 0.5s linear;
    }
</style>
</head>
<body>
    <div class="first">
        <h1>名车车标展示</h1>
        <section>
            <div>BMW 宝马
                <img src="img/1.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/2.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/3.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/4.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/5.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/6.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/7.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/8.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/9.jpg" alt="">
            </div>
            <div>BMW 宝马
                <img src="img/10.jpg" alt="">
            </div>
        </section>
        <!-- <div class="second">
            <img src="img/1.jpg" alt="">
            <img src="img/2.jpg" alt="">
            <img src="img/3.jpg" alt="">
            <img src="img/4.jpg" alt="">
            <img src="img/5.jpg" alt="">
            <img src="img/6.jpg" alt="">
            <img src="img/7.jpg" alt="">
            <img src="img/8.jpg" alt="">
            <img src="img/9.jpg" alt="">
            <img src="img/10.jpg" alt="">
        </div> -->
        
    </div>
</body>
<script>

</script>
</html>